package com.fyyg.common.util;

import java.text.NumberFormat;

public class NumberUtil {

	
	/**
	 * 数值补位  不足digitCapacity 位的前面用0代替
	 * @return
	 */
	public static String getNumber(Integer number, Integer digitCapacity){
		NumberFormat formatter = NumberFormat.getNumberInstance();     
		formatter.setMinimumIntegerDigits(digitCapacity);     
		formatter.setGroupingUsed(false);     
		return formatter.format(number);
	}
}
